# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=purple-carbons
pkgver=0.2.2
pkgrel=0
pkgdesc="XMPP Message Carbons plugin for libpurple"
arch="all"
url="https://github.com/gkdr/carbons"
license="GPL-3.0-or-later"
makedepends="
	libpurple-xmpp
	mxml-dev
	pidgin-dev
	"
checkdepends="cmocka-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/gkdr/carbons/archive/v$pkgver.tar.gz"
builddir=$srcdir/carbons-$pkgver

build() {
	make
}

package() {
	DESTDIR=$pkgdir PREFIX=/usr make install
}

check() {
	make test
}

sha512sums="9db5a178e794daa8d1fca973a776f427a32e1017ffee9053863b853eecca3ce4d041977c4ef4de93fff0f7066ffaf3c12e9bf756987e5825f5bebb8a6a870d7d  purple-carbons-0.2.2.tar.gz"
